package com.zlt.bkparking.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class VipTypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public VipTypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andVtIdIsNull() {
            addCriterion("vt_id is null");
            return (Criteria) this;
        }

        public Criteria andVtIdIsNotNull() {
            addCriterion("vt_id is not null");
            return (Criteria) this;
        }

        public Criteria andVtIdEqualTo(Integer value) {
            addCriterion("vt_id =", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdNotEqualTo(Integer value) {
            addCriterion("vt_id <>", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdGreaterThan(Integer value) {
            addCriterion("vt_id >", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("vt_id >=", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdLessThan(Integer value) {
            addCriterion("vt_id <", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdLessThanOrEqualTo(Integer value) {
            addCriterion("vt_id <=", value, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdIn(List<Integer> values) {
            addCriterion("vt_id in", values, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdNotIn(List<Integer> values) {
            addCriterion("vt_id not in", values, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdBetween(Integer value1, Integer value2) {
            addCriterion("vt_id between", value1, value2, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtIdNotBetween(Integer value1, Integer value2) {
            addCriterion("vt_id not between", value1, value2, "vtId");
            return (Criteria) this;
        }

        public Criteria andVtNameIsNull() {
            addCriterion("vt_name is null");
            return (Criteria) this;
        }

        public Criteria andVtNameIsNotNull() {
            addCriterion("vt_name is not null");
            return (Criteria) this;
        }

        public Criteria andVtNameEqualTo(String value) {
            addCriterion("vt_name =", value, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameNotEqualTo(String value) {
            addCriterion("vt_name <>", value, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameGreaterThan(String value) {
            addCriterion("vt_name >", value, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameGreaterThanOrEqualTo(String value) {
            addCriterion("vt_name >=", value, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameLessThan(String value) {
            addCriterion("vt_name <", value, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameLessThanOrEqualTo(String value) {
            addCriterion("vt_name <=", value, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameLike(String value) {
            addCriterion("vt_name like", value, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameNotLike(String value) {
            addCriterion("vt_name not like", value, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameIn(List<String> values) {
            addCriterion("vt_name in", values, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameNotIn(List<String> values) {
            addCriterion("vt_name not in", values, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameBetween(String value1, String value2) {
            addCriterion("vt_name between", value1, value2, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtNameNotBetween(String value1, String value2) {
            addCriterion("vt_name not between", value1, value2, "vtName");
            return (Criteria) this;
        }

        public Criteria andVtPriceIsNull() {
            addCriterion("vt_price is null");
            return (Criteria) this;
        }

        public Criteria andVtPriceIsNotNull() {
            addCriterion("vt_price is not null");
            return (Criteria) this;
        }

        public Criteria andVtPriceEqualTo(BigDecimal value) {
            addCriterion("vt_price =", value, "vtPrice");
            return (Criteria) this;
        }

        public Criteria andVtPriceNotEqualTo(BigDecimal value) {
            addCriterion("vt_price <>", value, "vtPrice");
            return (Criteria) this;
        }

        public Criteria andVtPriceGreaterThan(BigDecimal value) {
            addCriterion("vt_price >", value, "vtPrice");
            return (Criteria) this;
        }

        public Criteria andVtPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("vt_price >=", value, "vtPrice");
            return (Criteria) this;
        }

        public Criteria andVtPriceLessThan(BigDecimal value) {
            addCriterion("vt_price <", value, "vtPrice");
            return (Criteria) this;
        }

        public Criteria andVtPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("vt_price <=", value, "vtPrice");
            return (Criteria) this;
        }

        public Criteria andVtPriceIn(List<BigDecimal> values) {
            addCriterion("vt_price in", values, "vtPrice");
            return (Criteria) this;
        }

        public Criteria andVtPriceNotIn(List<BigDecimal> values) {
            addCriterion("vt_price not in", values, "vtPrice");
            return (Criteria) this;
        }

        public Criteria andVtPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("vt_price between", value1, value2, "vtPrice");
            return (Criteria) this;
        }

        public Criteria andVtPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("vt_price not between", value1, value2, "vtPrice");
            return (Criteria) this;
        }

        public Criteria andVtDayIsNull() {
            addCriterion("vt_day is null");
            return (Criteria) this;
        }

        public Criteria andVtDayIsNotNull() {
            addCriterion("vt_day is not null");
            return (Criteria) this;
        }

        public Criteria andVtDayEqualTo(Integer value) {
            addCriterion("vt_day =", value, "vtDay");
            return (Criteria) this;
        }

        public Criteria andVtDayNotEqualTo(Integer value) {
            addCriterion("vt_day <>", value, "vtDay");
            return (Criteria) this;
        }

        public Criteria andVtDayGreaterThan(Integer value) {
            addCriterion("vt_day >", value, "vtDay");
            return (Criteria) this;
        }

        public Criteria andVtDayGreaterThanOrEqualTo(Integer value) {
            addCriterion("vt_day >=", value, "vtDay");
            return (Criteria) this;
        }

        public Criteria andVtDayLessThan(Integer value) {
            addCriterion("vt_day <", value, "vtDay");
            return (Criteria) this;
        }

        public Criteria andVtDayLessThanOrEqualTo(Integer value) {
            addCriterion("vt_day <=", value, "vtDay");
            return (Criteria) this;
        }

        public Criteria andVtDayIn(List<Integer> values) {
            addCriterion("vt_day in", values, "vtDay");
            return (Criteria) this;
        }

        public Criteria andVtDayNotIn(List<Integer> values) {
            addCriterion("vt_day not in", values, "vtDay");
            return (Criteria) this;
        }

        public Criteria andVtDayBetween(Integer value1, Integer value2) {
            addCriterion("vt_day between", value1, value2, "vtDay");
            return (Criteria) this;
        }

        public Criteria andVtDayNotBetween(Integer value1, Integer value2) {
            addCriterion("vt_day not between", value1, value2, "vtDay");
            return (Criteria) this;
        }

        public Criteria andVtDescIsNull() {
            addCriterion("vt_desc is null");
            return (Criteria) this;
        }

        public Criteria andVtDescIsNotNull() {
            addCriterion("vt_desc is not null");
            return (Criteria) this;
        }

        public Criteria andVtDescEqualTo(String value) {
            addCriterion("vt_desc =", value, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescNotEqualTo(String value) {
            addCriterion("vt_desc <>", value, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescGreaterThan(String value) {
            addCriterion("vt_desc >", value, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescGreaterThanOrEqualTo(String value) {
            addCriterion("vt_desc >=", value, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescLessThan(String value) {
            addCriterion("vt_desc <", value, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescLessThanOrEqualTo(String value) {
            addCriterion("vt_desc <=", value, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescLike(String value) {
            addCriterion("vt_desc like", value, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescNotLike(String value) {
            addCriterion("vt_desc not like", value, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescIn(List<String> values) {
            addCriterion("vt_desc in", values, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescNotIn(List<String> values) {
            addCriterion("vt_desc not in", values, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescBetween(String value1, String value2) {
            addCriterion("vt_desc between", value1, value2, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDescNotBetween(String value1, String value2) {
            addCriterion("vt_desc not between", value1, value2, "vtDesc");
            return (Criteria) this;
        }

        public Criteria andVtDiscountIsNull() {
            addCriterion("vt_discount is null");
            return (Criteria) this;
        }

        public Criteria andVtDiscountIsNotNull() {
            addCriterion("vt_discount is not null");
            return (Criteria) this;
        }

        public Criteria andVtDiscountEqualTo(BigDecimal value) {
            addCriterion("vt_discount =", value, "vtDiscount");
            return (Criteria) this;
        }

        public Criteria andVtDiscountNotEqualTo(BigDecimal value) {
            addCriterion("vt_discount <>", value, "vtDiscount");
            return (Criteria) this;
        }

        public Criteria andVtDiscountGreaterThan(BigDecimal value) {
            addCriterion("vt_discount >", value, "vtDiscount");
            return (Criteria) this;
        }

        public Criteria andVtDiscountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("vt_discount >=", value, "vtDiscount");
            return (Criteria) this;
        }

        public Criteria andVtDiscountLessThan(BigDecimal value) {
            addCriterion("vt_discount <", value, "vtDiscount");
            return (Criteria) this;
        }

        public Criteria andVtDiscountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("vt_discount <=", value, "vtDiscount");
            return (Criteria) this;
        }

        public Criteria andVtDiscountIn(List<BigDecimal> values) {
            addCriterion("vt_discount in", values, "vtDiscount");
            return (Criteria) this;
        }

        public Criteria andVtDiscountNotIn(List<BigDecimal> values) {
            addCriterion("vt_discount not in", values, "vtDiscount");
            return (Criteria) this;
        }

        public Criteria andVtDiscountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("vt_discount between", value1, value2, "vtDiscount");
            return (Criteria) this;
        }

        public Criteria andVtDiscountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("vt_discount not between", value1, value2, "vtDiscount");
            return (Criteria) this;
        }

        public Criteria andVtStateIsNull() {
            addCriterion("vt_state is null");
            return (Criteria) this;
        }

        public Criteria andVtStateIsNotNull() {
            addCriterion("vt_state is not null");
            return (Criteria) this;
        }

        public Criteria andVtStateEqualTo(Byte value) {
            addCriterion("vt_state =", value, "vtState");
            return (Criteria) this;
        }

        public Criteria andVtStateNotEqualTo(Byte value) {
            addCriterion("vt_state <>", value, "vtState");
            return (Criteria) this;
        }

        public Criteria andVtStateGreaterThan(Byte value) {
            addCriterion("vt_state >", value, "vtState");
            return (Criteria) this;
        }

        public Criteria andVtStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("vt_state >=", value, "vtState");
            return (Criteria) this;
        }

        public Criteria andVtStateLessThan(Byte value) {
            addCriterion("vt_state <", value, "vtState");
            return (Criteria) this;
        }

        public Criteria andVtStateLessThanOrEqualTo(Byte value) {
            addCriterion("vt_state <=", value, "vtState");
            return (Criteria) this;
        }

        public Criteria andVtStateIn(List<Byte> values) {
            addCriterion("vt_state in", values, "vtState");
            return (Criteria) this;
        }

        public Criteria andVtStateNotIn(List<Byte> values) {
            addCriterion("vt_state not in", values, "vtState");
            return (Criteria) this;
        }

        public Criteria andVtStateBetween(Byte value1, Byte value2) {
            addCriterion("vt_state between", value1, value2, "vtState");
            return (Criteria) this;
        }

        public Criteria andVtStateNotBetween(Byte value1, Byte value2) {
            addCriterion("vt_state not between", value1, value2, "vtState");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNull() {
            addCriterion("pl_id is null");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNotNull() {
            addCriterion("pl_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlIdEqualTo(Integer value) {
            addCriterion("pl_id =", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotEqualTo(Integer value) {
            addCriterion("pl_id <>", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThan(Integer value) {
            addCriterion("pl_id >", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pl_id >=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThan(Integer value) {
            addCriterion("pl_id <", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThanOrEqualTo(Integer value) {
            addCriterion("pl_id <=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdIn(List<Integer> values) {
            addCriterion("pl_id in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotIn(List<Integer> values) {
            addCriterion("pl_id not in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdBetween(Integer value1, Integer value2) {
            addCriterion("pl_id between", value1, value2, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pl_id not between", value1, value2, "plId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}